package com.ruoyi.system.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品实体表
 */
@Data
@ExcelIgnoreUnannotated
public class SysGoods extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Integer id ;
    @ExcelProperty( "商品编码")
    private String code;
    @ExcelProperty( "商品条码")
    private String bar;
    @ExcelProperty( "商品名称")
    private String name;
    @ExcelProperty( "规格")
    private String norm;
    @ExcelProperty(  "商品分类")
    private String category;
    @ExcelProperty(  "商品类型")
    private String type;
    @ExcelProperty(  "单位")
    private String unit;
    private String place;
    private String reprice;
    private int imported;
    private int purchase;
    private String taxrate;
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("code", getCode())
                .append("bar", getBar())
                .append("name", getName())
                .append("norm", getNorm())
                .append("category", getCategory())
                .append("type", getType())
                .append("unit", getUnit())
                .toString();
    }

}
